package bl.service;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import data.entity.*;

public interface SearchSpotService extends Remote {

	public boolean isCityExist(String name) throws RemoteException;

	public CityEntity searchCity(String name) throws RemoteException;

	public ArrayList<SpotEntity> getSpotList(CityEntity ce)
			throws RemoteException;

	public boolean isSpotExist(String name) throws RemoteException;

	public SpotEntity searchSpot(String name) throws RemoteException;

	public void addWant(int spotID, UserEntity user) throws RemoteException;

	public SpotEntity getSpot(Integer id) throws RemoteException;

	public CityEntity getCity(Integer id) throws RemoteException;

	public void insertSpot(SpotEntity s) throws RemoteException;

	public void insertCity(CityEntity c) throws RemoteException;
	
	public ArrayList<CityEntity> getAllCity() throws RemoteException;
	
	public ArrayList<SpotEntity> getWantList(int userID)throws RemoteException;
	
	public void addWantSpot(int userID,int spotID)throws RemoteException;
}
